$OpenBSD: patch-modules_core_src_system_cpp,v 1.1 2015/01/26 21:59:55 zhuk Exp $
Fix build on i386.
--- modules/core/src/system.cpp.orig	Wed Oct  1 11:33:36 2014
+++ modules/core/src/system.cpp	Tue Jan 27 00:34:47 2015
@@ -253,6 +253,7 @@ struct HWFeatures
             f.have[CV_CPU_AVX]    = (((cpuid_data[2] & (1<<28)) != 0)&&((cpuid_data[2] & (1<<27)) != 0));//OS uses XSAVE_XRSTORE and CPU support AVX
         }
 
+#if !defined __i386__
     #if defined _MSC_VER && (defined _M_IX86 || defined _M_X64)
         __cpuidex(cpuid_data, 7, 0);
     #elif defined __GNUC__ && (defined __i386__ || defined __x86_64__)
@@ -285,6 +286,7 @@ struct HWFeatures
         {
             f.have[CV_CPU_AVX2] = (cpuid_data[1] & (1<<5)) != 0;
         }
+#endif
 
         return f;
     }
